<?php

namespace App\Models;

class SmsLog extends Base
{
    protected $table = 'sms_log';

    protected $casts = [
        'created_at' => 'datetime:Y-m-d H:i:s',
        'updated_at' => 'datetime:Y-m-d H:i:s',
        'deleted_at' => 'datetime:Y-m-d H:i:s',
        'properties' => 'array',
    ];

    /**
     * 短信类型: 验证码
     */
    const TYPE_CAPTCHA = 1;

    /**
     * 短信类型: 财务后台登录验证码
     */
    const TYPE_FINANCE_LOGIN_SMS_CAPTCHA = 2;

    /**
     * 短信类型: 财务后台操作验证码
     */
    const TYPE_FINANCE_OPERATE_SMS_CAPTCHA = 3;
}
